<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*"%>
<%@ page import="cn.edu.scau.yangchunmei.bean.student"%>
<%@ page import="java.sql.Connection"%>
<%@ page import="java.sql.DriverManager"%>
<%@ page import="java.sql.ResultSet"%>
<%@ page import="java.sql.SQLException"%>
<%@ page import="java.sql.Statement"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
Class.forName("com.mysql.jdbc.Driver");

	String url = "jdbc:mysql://localhost:3306/jsp";
	String username = "root";
	String password = "root";
	Connection conn = DriverManager.getConnection(url, username,password);
	Statement stmt = conn.createStatement();	
	int rtn = stmt.executeUpdate("update tb_student set name='lili',id= 3 where id=1");
	%>
</body>
</html>